/** @format */

import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App,
})
app.$mount()
// #endif
import zdyTabbar from 'components/zdy-tabbar/zdy-tabbar.vue'
// 注册全局组件
Vue.component('zdy-tabbar', zdyTabbar)

// 子页面头部导航
import childHeaderBar from 'components/child-header-bar/child-header-bar.vue'
// 注册全局组件
Vue.component('child-header-bar', childHeaderBar)

import uniTooltip from './uni_modules/uni-tooltip/components/uni-tooltip/uni-tooltip'
// 注册全局组件
Vue.component('uni-tooltip', uniTooltip)

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app,
  }
}
// #endif

//图片的公共的url
import urlImg from '@/components/urLImg.js'
Vue.prototype.$imgUrl = urlImg

// // http接口API抽离，免于写url或者一些固定的参数
import httpApi from '@/components/http.api.js'
Vue.prototype.$httpApi = httpApi
